package com.hezuti.info.domain;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 基础信息 学校
 * 
 * @author Administrator
 */
@Entity
@Table(name = "school")
public class School {

	/**大学*/
	public final static int STYPE_COLLAGE=1;
	
	/**高中*/
	public final static int STYPE_MIDDLE_SCHOOL=2;
	
	/**中专技校*/
	public final static int STYPE_ZhongZhuan=3;
	
	/**初中*/
	public final static int STYPE_JUNIOR_SCHOOL=4;
	
	/**小学*/
	public final static int STYPE_PRIMARY_SCHOOL=5;

	public static final String FIELD_STYPE = "stype";

	public static final String FIELD_PID = "pid";

	public static final String FIELD_CID = "cid";

	public static final String FIELD_DID = "did";
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	
	private String name;
	
	private Integer pid;
	
	private Integer stype;
	
	private Integer cid;
	
	private Integer did;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getStype() {
		return stype;
	}

	public void setStype(Integer stype) {
		this.stype = stype;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public Integer getDid() {
		return did;
	}

	public void setDid(Integer did) {
		this.did = did;
	}

	
	
	
	
}
